﻿
#region Using Directives
using System;
using System.ComponentModel;
using System.Collections;
using System.Xml.Serialization;
using System.Data;

using NetROS.Tiers.Entities;
using NetROS.Tiers.Entities.Validation;

using NetROS.Tiers.Data;
using Microsoft.Practices.EnterpriseLibrary.Logging;

#endregion

namespace NetROS.Tiers.Services
{		
	
	///<summary>
	/// An component type implementation of the 'vwObracunKamataTrazi' table.
	///</summary>
	/// <remarks>
	/// All custom implementations should be done here.
	/// </remarks>
	[CLSCompliant(true)]
	public partial class VwObracunKamataTraziService : NetROS.Tiers.Services.VwObracunKamataTraziServiceBase
	{
		/// <summary>
		/// Initializes a new instance of the VwObracunKamataTraziService class.
		/// </summary>
		public VwObracunKamataTraziService() : base()
		{
		}
        ///<summary>
        ///</summary>
        ///<param name="Konto"></param>
        ///<param name="IDKlijent"></param>
        ///<param name="DatumObracuna"></param>
        ///<param name="MT"></param>
        ///<returns></returns>
        public VwObracunKamataTrazi PrebaciUObracunVratiVwEnt(System.String @Konto, System.Int32? @IDKlijent, System.DateTime? @DatumObracuna, System.Int32? @MT)
        {
            VList<VwObracunKamataTrazi> entity = new VList<VwObracunKamataTrazi>();
            try
            {
                entity = base.PrebaciUObracunVratiVw(@Konto, @IDKlijent, @DatumObracuna, @MT);
            }
            catch (Exception exc)
            {
                //Handle exception based on policy
                if (DomainUtil.HandleException(exc, "NoneExceptionPolicy"))
                    throw;
            }
            if (entity.Count == 1)
            {
                return entity[0];
            }
            return null;


        }
		
	}//End Class


} // end namespace
